import React from 'react';
import {View, Text, navigation, Button, TouchableOpacity} from 'react-native';
import Profile from './Profile';
import Search from './Search';

import {createBottomTabNavigator} from '@react-navigation/bottom-tabs';
import {NavigationContainer} from '@react-navigation/native';

// const NavBottomNavigator = createBottomTabNavigator(
//   {
//     Home: Home,

//     Search: Search,

//     Profile: Profile,
//   },
//   {
//     initialRouteName: 'Property',
//   },
// );

// ;
const Tab = createBottomTabNavigator();

class Home extends React.Component {
  render() {
    return (
      <Tab.Navigator>
        {/* <Tab.Screen name="Home" component={Home} /> */}
        <Tab.Screen name="Profile" component={Profile} />
        <Tab.Screen name="Search" component={Search} />
      </Tab.Navigator>
    );
  }
}

export default Home;
